class Scoreboard
  def initialize(window)
    @window = window
    @font = Gosu::Font.new(window, Gosu::default_font_name, 16)
  end
  
  def update
  end
  
  def draw
    temp_y = 16
    temp_x = @window.width / 2
    
    @window.teams.each do |n|
      @font.draw_rel("Team #{n}: ", temp_x, temp_y, ZOrder::HUD, 1, 0)
      @font.draw_rel(" #{@window.team_scores[n]}", temp_x, temp_y, ZOrder::HUD, 0, 0)
      temp_y += 24
    end
  end
end
